﻿<div class="umb-panel umb-editor-wrapper ng-scope" ng-controller="UE.DealerEditController as vm">
    <div class="umb-editor-header umb-panel-header ng-scope">
        <div data-element="editor-header" class="umb-editor-header umb-panel-header ng-scope">

            <div class="umb-panel-header-content-wrapper">
                <div class="umb-panel-header-content">
                    <div class="umb-panel-header-left-side -top-position">
                        <div class="umb-panel-header-title-wrapper">
                            <div class="umb-panel-header-name ng-scope ng-binding" title="">
                                <localize key="dealer_edit"></localize>
                            </div>
                            <div class="umb-panel-header-locked-description ng-binding" style="display:none;">Description</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-horizontal umb-editor-container umb-panel-body umb-scrollable row-fluid ng-scope">
        <!--内容部分开始-->
        <div class="umb-pane">
            <div class="umb-property ng-scope">
                <!--address-->
                <div class="control-group umb-control-group">
                    <div ng-show="errorMsg != ''" class="alert alert-error property-error ng-binding" style="display: none;"></div>
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" for="labelOn" title="labelOn">
                            <localize key="dealer_address"></localize>
                            <span class="ng-scope">
                                <strong class="umb-control-required">*</strong>
                            </span>
                            <small class="ng-binding"><localize key="dealer_addressdesc"></localize></small>
                        </label>
                        <div class="controls">
                            <div class="umb-property-editor ng-scope">
                                <input type="text" ng-trim="true" ng-model="dealer.address" class="umb-editor umb-textstring ng-scope ng-pristine ng-valid">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="umb-property ng-scope">
                <!--storename-->
                <div class="control-group umb-control-group">
                    <div ng-show="errorMsg != ''" class="alert alert-error property-error ng-binding" style="display: none;"></div>
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" for="labelOn" title="labelOn">
                            <localize key="dealer_storename"></localize>
                            <span class="ng-scope">
                                <strong class="umb-control-required">*</strong>
                            </span>
                            <small class="ng-binding"><localize key="dealer_storenamedesc"></localize></small>
                        </label>
                        <div class="controls">
                            <div class="umb-property-editor ng-scope">
                                <input type="text" ng-trim="true" ng-model="dealer.name" class="umb-editor umb-textstring ng-scope ng-pristine ng-valid">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="umb-property ng-scope">
                <!--responsible-->
                <div class="control-group umb-control-group">
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" for="labelOn" title="labelOn">
                            <localize key="dealer_responsible"></localize>
                            <small class="ng-binding"><localize key="dealer_responsibledesc"></localize></small>
                        </label>
                        <div class="controls">
                            <div class="umb-property-editor ng-scope">
                                <input type="text" ng-trim="true" ng-model="dealer.responsible" maxlength="10" class="umb-editor umb-textstring ng-scope ng-pristine ng-valid">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="umb-property ng-scope">
                <!--contact-->
                <div class="control-group umb-control-group">
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" for="labelOn" title="labelOn">
                            <localize key="dealer_contact"></localize>
                            <small class="ng-binding"><localize key="dealer_contactdesc"></localize></small>
                        </label>
                        <div class="controls">
                            <div class="umb-property-editor ng-scope">
                                <input type="text" ng-trim="true" ng-model="dealer.contact" maxlength="20" class="umb-editor umb-textstring ng-scope ng-pristine ng-valid">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="umb-property ng-scope">
                <div class="control-group umb-control-group" ng-class="{hidelabel:property.hideLabel}">
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" ng-hide="property.hideLabel">
                            Lat
                        </label>

                        <div class="controls">
                            <div class="ng-scope ng-binding">{{dealer.lat}}</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="umb-property ng-scope">
                <div class="control-group umb-control-group" ng-class="{hidelabel:property.hideLabel}">
                    <div class="umb-el-wrap">
                        <label class="control-label ng-binding" ng-hide="property.hideLabel">
                            Lng
                        </label>

                        <div class="controls">
                            <div class="ng-scope ng-binding">{{dealer.lng}}</div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <!--内容部分结束-->
    </div>
    <div class="umb-tab-buttons umb-editor-drawer ng-scope">
        <div class="umb-editor-drawer-content">
            <div class="umb-editor-drawer-content__left-side ng-scope">
            </div>

            <div class="umb-editor-drawer-content__right-side ng-scope">
                <div class="umb-button ng-scope">
                    <umb-button action="updateDealer()"
                                type="button"
                                button-style="success"
                                state="vm.buttonState"
                                shortcut="ctrl+c"
                                label-key="actions_save"
                                disabled="vm.buttonState === 'busy'">
                    </umb-button>
                </div>

            </div>

        </div>
    </div>
</div>